package com.zty.xiaomi.server.Controller;

import com.zty.xiaomi.server.Dto.GetInsuranceOrderInfoDto;
import com.zty.xiaomi.server.Entity.Insurance.Insurance;
import com.zty.xiaomi.server.Entity.Insurance.InsuranceOrder;
import com.zty.xiaomi.server.Service.InsuranceOrder.InsuranceOrderServiceImp;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.io.IOException;
import java.util.List;

@CrossOrigin
@RestController
@RequestMapping("insuranceOrder")
public class InsuranceOrderController {

//    @Autowired
//    private InsuranceOrderServiceImp insuranceOrderServiceImp;
//
//    @GetMapping("getInsuranceOrderByOrderNo")
//    private GetInsuranceOrderInfoDto getGoodInfoById(@RequestParam("orderNo") int orderNo) throws IOException {
//        GetInsuranceOrderInfoDto getInsuranceOrderInfoDto = new GetInsuranceOrderInfoDto();
//        List<InsuranceOrder> list = insuranceOrderServiceImp.getInsuranceOrderByOrderNo(orderNo);
//        if (list.size() == 0) {
//            getInsuranceOrderInfoDto.setStatus("400");
//            getInsuranceOrderInfoDto.setMsg("");
//        }
//        getInsuranceOrderInfoDto.setList(list);
//        getInsuranceOrderInfoDto.setStatus("200");
//        return getInsuranceOrderInfoDto;
//    }

}
